package org.lboot.flow.module.event.sp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.lboot.jpa.entity.BaseEntity;
import org.lboot.jpa.entity.NoAuditBaseEntity;
import org.lboot.jpa.entity.NoAuditLongBaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "flow_event_service_provider")
@ApiModel(value = "流程事件服务实现")
public class FlowEventServiceProvider extends NoAuditLongBaseEntity implements Serializable {

    @ApiModelProperty(value = "关联事件ID")
    @Column(name = "event_id")
    String eventId;

    @ApiModelProperty(value = "服务实现唯一标识")
    @Column(name = "service_id")
    String serviceId;

    @ApiModelProperty(value = "服务实现名称")
    @Column(name = "service_name")
    String serviceName;

    @ApiModelProperty(value = "服务实现版本")
    @Column(name = "version")
    String version;

    @ApiModelProperty(value = "服务实现优先级")
    @Column(name = "priority")
    Integer priority;

    @ApiModelProperty(value = "实现语言")
    @Column(name = "lang")
    String lang;

    @ApiModelProperty(value = "所处节点")
    @Column(name = "node")
    String node;

}
